<?include("cabecera.php");?>
<?include("menu_generico.php");?>
            <h2>Notaría Electrónica Login</h2>
            <hr>
            <form method=post action="<? echo $_SERVER["PHP_SELF"];?>" id="login">
            <table>
            <tr>
                <td>Rut</td><td><input type=text name=rut value="" id="rut_cliente" class="" autocomplete="off" class="required rut error"/></td>
            </tr>
            <tr>
                <td>Pass</td><td><input type=password name=pass value="" class="required" autocomplete="off" /></td>
            </tr>
            <tr>
            <td><input type=submit name=submit value="Entrar"></td><td></td>
            </tr>
            </table>
            </form>
            <br>
            <?
            if(isset($_POST["submit"]))
            {
                $rut="";        if(isset($_POST["rut"])) $rut = $_POST["rut"];
                $pass="";       if(isset($_POST["pass"])) $pass = $_POST["pass"];
                   
                echo $obj_ctrl_sistema->login($rut, $pass);
            }
            ?>
  
<?include("pie.php");?>